import request from '@/utils/request'

export const getTotalDataApi = (data) => {
  data.orderFrom = 1
  return request({
    url: '/plat/dataBoard/order/top/item',
    method: 'post',
    data: data
  })
}

export const getChartDataApi = (data) => {
  return request({
    url: '/plat/dataBoard/order/bill/chart',
    method: 'post',
    data: data
  })
}

export const getListDataApi = (data) => {
  data.orderFrom = 1
  return request({
    url: '/plat/dataBoard/order/down/item',
    method: 'post',
    data: data
  })
}